All Functions of Week 5

c

{base}

Combine values/vectors into a vector

ungroup

{dplyr}

Resolve grouping created with “group_by”

arrange

{dplyr}

Sort values of data frame according to a variable/combination of varaibles

mean

{base}

Get mean of a vector

cut

{base}

Convert Numeric to Factor

names

{base}

Retrieve names of a list/vector

factor

{base}

Create a factor

ifelse

{base}

Return a or b depending on the value of test

head

{utils}

Show first 5 rows of a data frame

filter

{dplyr}

Filter out rows of a data frame according to logical vector

str

{utils}

Get the structure of an R object

recode

{dplyr}

Recode a variable

desc

{dplyr}

Arrange in descending order

slice

{dplyr}

Subset rows using their positions

summarise

{dplyr}

collapse the dataset to a summary statistic. Usually used with group_by()

library

{base}

Load an R package

mutate

{dplyr}

Modify/create a column in a data frame

levels

{base}

Get levels of a factor

read_excel

{readxl}

Read an Excel file

group_by

{dplyr}

Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise

setwd

{base}

Set Working Directory

select

{dplyr}

Select columns from a tibble/data frame

The end!